package Thread;

public class ThreadDemo05 {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new  Thread(()->{
            Thread t = Thread.currentThread();
            System.out.println(t.getName());
        });
        Thread t2 = new  Thread(()->{
            Thread t = Thread.currentThread();
            System.out.println(t.getName());
        });

        Thread.sleep(1000);
        t1.start();
        t2.start();
    }
}
